package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.user.dtos.ArticleInfoDto;
import com.heima.model.user.dtos.LikesBehaviorDto;
import com.heima.model.user.dtos.readBehaviorDto;
import com.heima.model.user.pojos.ApuUerFollow;
import org.springframework.stereotype.Component;

/**
 * feign的失败配置
 */
@Component
public class IArticleClientFallback implements IArticleClient {
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public void dznum(LikesBehaviorDto dto) {

    }

    @Override
    public void ydnum(readBehaviorDto dto) {

    }


}
